package com.glinsoft.cg.context;


public class FileConfig {

    private String table;
    private String charset;
    private String mapperPackage;
    private String entityPackage;
    private String controllerPackage;
    private String servicePackage;
    private String mapperSuffix;
    private String entitySuffix;
    private String controllerSuffix;
    private String serviceSuffix;
    private String parentPackage;

    public FileConfig() {
    }

    public String getTable() {
        return table;
    }

    public String getCharset() {
        return charset;
    }

    public String getMapperPackage() {
        return mapperPackage;
    }

    public String getEntityPackage() {
        return entityPackage;
    }

    public String getControllerPackage() {
        return controllerPackage;
    }

    public String getServicePackage() {
        return servicePackage;
    }

    public String getMapperSuffix() {
        return mapperSuffix;
    }

    public String getEntitySuffix() {
        return entitySuffix;
    }

    public String getControllerSuffix() {
        return controllerSuffix;
    }

    public String getServiceSuffix() {
        return serviceSuffix;
    }

    public String getParentPackage() {
        return parentPackage;
    }

    public void setTable(String table) {
        this.table = table;
    }

    public void setCharset(String charset) {
        this.charset = charset;
    }

    public void setMapperPackage(String mapperPackage) {
        this.mapperPackage = mapperPackage;
    }

    public void setEntityPackage(String entityPackage) {
        this.entityPackage = entityPackage;
    }

    public void setControllerPackage(String controllerPackage) {
        this.controllerPackage = controllerPackage;
    }

    public void setServicePackage(String servicePackage) {
        this.servicePackage = servicePackage;
    }

    public void setMapperSuffix(String mapperSuffix) {
        this.mapperSuffix = mapperSuffix;
    }

    public void setEntitySuffix(String entitySuffix) {
        this.entitySuffix = entitySuffix;
    }

    public void setControllerSuffix(String controllerSuffix) {
        this.controllerSuffix = controllerSuffix;
    }

    public void setServiceSuffix(String serviceSuffix) {
        this.serviceSuffix = serviceSuffix;
    }

    public void setParentPackage(String parentPackage) {
        this.parentPackage = parentPackage;
    }

    public boolean equals(Object o) {
        if (o == this)
            return true;
        if (!(o instanceof FileConfig))
            return false;
        FileConfig other = (FileConfig) o;
        if (!other.canEqual(this))
            return false;
        Object this$table = getTable();
        Object other$table = other.getTable();
        if (this$table != null ? !this$table.equals(other$table) : other$table != null)
            return false;
        Object this$charset = getCharset();
        Object other$charset = other.getCharset();
        if (this$charset != null ? !this$charset.equals(other$charset) : other$charset != null)
            return false;
        Object this$mapperPackage = getMapperPackage();
        Object other$mapperPackage = other.getMapperPackage();
        if (this$mapperPackage != null ? !this$mapperPackage.equals(other$mapperPackage) : other$mapperPackage != null)
            return false;
        Object this$entityPackage = getEntityPackage();
        Object other$entityPackage = other.getEntityPackage();
        if (this$entityPackage != null ? !this$entityPackage.equals(other$entityPackage) : other$entityPackage != null)
            return false;
        Object this$controllerPackage = getControllerPackage();
        Object other$controllerPackage = other.getControllerPackage();
        if (this$controllerPackage != null ? !this$controllerPackage.equals(other$controllerPackage) : other$controllerPackage != null)
            return false;
        Object this$servicePackage = getServicePackage();
        Object other$servicePackage = other.getServicePackage();
        if (this$servicePackage != null ? !this$servicePackage.equals(other$servicePackage) : other$servicePackage != null)
            return false;
        Object this$mapperSuffix = getMapperSuffix();
        Object other$mapperSuffix = other.getMapperSuffix();
        if (this$mapperSuffix != null ? !this$mapperSuffix.equals(other$mapperSuffix) : other$mapperSuffix != null)
            return false;
        Object this$entitySuffix = getEntitySuffix();
        Object other$entitySuffix = other.getEntitySuffix();
        if (this$entitySuffix != null ? !this$entitySuffix.equals(other$entitySuffix) : other$entitySuffix != null)
            return false;
        Object this$controllerSuffix = getControllerSuffix();
        Object other$controllerSuffix = other.getControllerSuffix();
        if (this$controllerSuffix != null ? !this$controllerSuffix.equals(other$controllerSuffix) : other$controllerSuffix != null)
            return false;
        Object this$serviceSuffix = getServiceSuffix();
        Object other$serviceSuffix = other.getServiceSuffix();
        if (this$serviceSuffix != null ? !this$serviceSuffix.equals(other$serviceSuffix) : other$serviceSuffix != null)
            return false;
        Object this$parentPackage = getParentPackage();
        Object other$parentPackage = other.getParentPackage();
        return this$parentPackage != null ? this$parentPackage.equals(other$parentPackage) : other$parentPackage == null;
    }

    protected boolean canEqual(Object other) {
        return other instanceof FileConfig;
    }

    public int hashCode() {
        int PRIME = 59;
        int result = 1;
        Object $table = getTable();
        result = result * 59 + ($table != null ? $table.hashCode() : 43);
        Object $charset = getCharset();
        result = result * 59 + ($charset != null ? $charset.hashCode() : 43);
        Object $mapperPackage = getMapperPackage();
        result = result * 59 + ($mapperPackage != null ? $mapperPackage.hashCode() : 43);
        Object $entityPackage = getEntityPackage();
        result = result * 59 + ($entityPackage != null ? $entityPackage.hashCode() : 43);
        Object $controllerPackage = getControllerPackage();
        result = result * 59 + ($controllerPackage != null ? $controllerPackage.hashCode() : 43);
        Object $servicePackage = getServicePackage();
        result = result * 59 + ($servicePackage != null ? $servicePackage.hashCode() : 43);
        Object $mapperSuffix = getMapperSuffix();
        result = result * 59 + ($mapperSuffix != null ? $mapperSuffix.hashCode() : 43);
        Object $entitySuffix = getEntitySuffix();
        result = result * 59 + ($entitySuffix != null ? $entitySuffix.hashCode() : 43);
        Object $controllerSuffix = getControllerSuffix();
        result = result * 59 + ($controllerSuffix != null ? $controllerSuffix.hashCode() : 43);
        Object $serviceSuffix = getServiceSuffix();
        result = result * 59 + ($serviceSuffix != null ? $serviceSuffix.hashCode() : 43);
        Object $parentPackage = getParentPackage();
        result = result * 59 + ($parentPackage != null ? $parentPackage.hashCode() : 43);
        return result;
    }

    public String toString() {
        return (new StringBuilder()).append("FileConfig(table=").append(getTable()).append(", charset=").append(getCharset()).append(", mapperPackage=").append(getMapperPackage()).append(", entityPackage=").append(getEntityPackage()).append(", controllerPackage=").append(getControllerPackage()).append(", servicePackage=").append(getServicePackage()).append(", mapperSuffix=").append(getMapperSuffix()).append(", entitySuffix=").append(getEntitySuffix()).append(", controllerSuffix=").append(getControllerSuffix()).append(", serviceSuffix=").append(getServiceSuffix()).append(", parentPackage=").append(getParentPackage()).append(")").toString();
    }
}
